package pers.xhh.frontapi.entity.to.order;

import pers.xhh.frontapi.entity.MiOrderEntity;
import pers.xhh.frontapi.entity.MiOrderItemEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author wei-xhh
 * @date 2020-12-10
 */
public class OrderCreateTo {
    private MiOrderEntity order;
    private List<MiOrderItemEntity> orderItems;
    /**
     * 订单计算的应付价格
     */
    private BigDecimal payPrice;
    /**
     * 运费
     */
    private BigDecimal fare;

    public MiOrderEntity getOrder() {
        return order;
    }

    public void setOrder(MiOrderEntity order) {
        this.order = order;
    }

    public List<MiOrderItemEntity> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<MiOrderItemEntity> orderItems) {
        this.orderItems = orderItems;
    }

    public BigDecimal getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(BigDecimal payPrice) {
        this.payPrice = payPrice;
    }

    public BigDecimal getFare() {
        return fare;
    }

    public void setFare(BigDecimal fare) {
        this.fare = fare;
    }
}
